<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <title>登录页面</title>
    <link rel="stylesheet" href="/addons/jquery-weui-build/css/weui.min.css">
    <link rel="stylesheet" href="/addons/jquery-weui-build/css/jquery-weui.css">
    <link rel="stylesheet" href="/css/system/main.css?v=2018050202">
    <style>
        body{
            background: url("../../images/system/first-bk.png")no-repeat 0 0;
            background-size: cover;
        }
    </style>
</head>
<body ontouchstart>
<div class="index-login">
    <img class="com-logo" @if(empty($logo)) src="../../images/system/logo.png" @else src="{{$logo->value}}" @endif>
    <p class="com-title">@if(empty($name)) 青苜网绩效考核系统 @else {{$name->value}} @endif</p>
    <form class="login-form"  method="post" action="{{ url('/login') }}">
        <div class="input-text">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
            <div class="label-input">
                <label class="icon-person"><img src="../../images/system/person.png"></label>
                <input type="text" name="username" >
            </div>
            <div class="label-input">
                <label class="icon-lock"><img src="../../images/system/password.png"></label>
                <input type="password" name="password">
            </div>
        </div>
        @if (count($errors) > 0)
            <div style="text-align: left;">
                @foreach ($errors->all() as $error)
                    {{$error}}
                @endforeach
            </div>
        @endif
        <div class="input-btn">
            <button >登录</button>
        </div>
    </form>
    <div class="com-word">
        <p>@if(empty($slogan)) 如果我不会赢，我就不会跑 @else {{$slogan->value}} @endif</p>
    </div>
</div>
<script src="/js/jquery-2.1.4.min.js"></script>
<script src="/addons/jquery-weui-build/js/fastclick.js"></script>
<script>
    $(function() {
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        FastClick.attach(document.body);
    });
</script>
<script src="/addons/jquery-weui-build/js/jquery-weui.min.js"></script>
<script>
    //提交搜索
    function wechatsearch(){
        if($('.search-bar__input').val() == ''){
            layer.msg('搜索关键字不能为空');
            return false;
        }
        $('#form1').submit();
    }
</script>
</body>
</html>